package com.xhui.collection.hash;

/**
 * @Author XHui
 * @Date 2023/1/31 21:22
 * @Version 1.0
 */
public class HashcodeDemo {

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setId("1");
        s1.setAge(11);
        Student s2 = new Student();
        s2.setAge(12);
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
    }
}
